package com.luyou.a01;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class Component2 {

    @EventListener
    public void aaa(UserRegisteredEvent event) {
        System.out.println(event);
        System.out.println("发送短信");
    }
}
